<!--
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="ThemeBucket">
    <link rel="shortcut icon" href="#" type="image/png">

    <title>Dynamic Table</title>

    &lt;!&ndash;dynamic table&ndash;&gt;
    <link href="js/advanced-datatable/css/demo_page.css" rel="stylesheet"/>
    <link href="js/advanced-datatable/css/demo_table.css" rel="stylesheet"/>
    <link rel="stylesheet" href="js/data-tables/DT_bootstrap.css"/>
    <div  th:replace="~{common/common::commonheader}"></div>

</head>

<body class="sticky-header">

<section>
    &lt;!&ndash; left side start&ndash;&gt;
    <div th:replace="~{common/common::leftmenu}"></div>
    &lt;!&ndash; left side end&ndash;&gt;

    &lt;!&ndash; main content start&ndash;&gt;
    <div class="main-content">

        &lt;!&ndash; header section start&ndash;&gt;
        <div th:replace="~{common/common::headermenu}"></div>
        &lt;!&ndash; header section end&ndash;&gt;

        &lt;!&ndash; page heading start&ndash;&gt;
        <div class="page-heading">
            <h3>
                Dynamic Table
            </h3>
            <ul class="breadcrumb">
                <li>
                    <a href="#">Dashboard</a>
                </li>
                <li>
                    <a href="#">Data Tables</a>
                </li>
                <li class="active"> Dynamic Table</li>
            </ul>
        </div>
        &lt;!&ndash; page heading end&ndash;&gt;

        &lt;!&ndash;body wrapper start&ndash;&gt;
        <div class="wrapper">
            <div class="row">
                <div class="col-sm-12">
                    <section class="panel">
                        <header class="panel-heading">
                            Dynamic Table
                            <span class="tools pull-right">
                <a href="javascript:;" class="fa fa-chevron-down"></a>
                <a href="javascript:;" class="fa fa-times"></a>
             </span>
                        </header>
                        <div class="panel-body">
                            <div class="adv-table">
&lt;!&ndash;                                <table class="display table table-bordered table-striped" id="dynamic-table">&ndash;&gt;
&lt;!&ndash;                                    <thead>&ndash;&gt;
&lt;!&ndash;                                    <tr>&ndash;&gt;
&lt;!&ndash;                                        <th>#</th>&ndash;&gt;
&lt;!&ndash;                                        <th>用户名</th>&ndash;&gt;
&lt;!&ndash;                                        <th>密码</th>&ndash;&gt;
&lt;!&ndash;                                    </tr>&ndash;&gt;
&lt;!&ndash;                                    </thead>&ndash;&gt;
&lt;!&ndash;                                    <tbody>&ndash;&gt;
&lt;!&ndash;                                    <tr class="gradeX" th:each="user,stats:${users}">&ndash;&gt;
&lt;!&ndash;                                        <td th:text="${stats.count}">序号</td>&ndash;&gt;
&lt;!&ndash;                                        <td th:text="${user.getUsername()}">用户名</td>&ndash;&gt;
&lt;!&ndash;                                        <td th:text="${user.getPassword()}">密码</td>&ndash;&gt;
&lt;!&ndash;                                    </tr>&ndash;&gt;
&lt;!&ndash;                                    </tbody>&ndash;&gt;
&lt;!&ndash;                                    &lt;!&ndash; <tfoot>&ndash;&gt;
&lt;!&ndash;                                     <tr>&ndash;&gt;
&lt;!&ndash;                                         <th>Rendering engine</th>&ndash;&gt;
&lt;!&ndash;                                         <th>Browser</th>&ndash;&gt;
&lt;!&ndash;                                         <th>Platform(s)</th>&ndash;&gt;
&lt;!&ndash;                                         <th class="hidden-phone">Engine version</th>&ndash;&gt;
&lt;!&ndash;                                         <th class="hidden-phone">CSS grade</th>&ndash;&gt;
&lt;!&ndash;                                     </tr>&ndash;&gt;
&lt;!&ndash;                                     </tfoot>&ndash;&gt;&ndash;&gt;
&lt;!&ndash;                                </table>&ndash;&gt;
                            </div>
                        </div>
                    </section>
                </div>
            </div>
            <div class="row">
                <div class="col-sm-12">
                    <section class="panel">
                        <header class="panel-heading">
                            DataTables hidden row details example
                            <span class="tools pull-right">
                <a href="javascript:;" class="fa fa-chevron-down"></a>
                <a href="javascript:;" class="fa fa-times"></a>
             </span>
                        </header>
                        <div class="panel-body">
                            <div class="adv-table">
                                <table class="display table table-bordered" id="hidden-table-info">

                                    <thead>
                                    <tr>
                                        <th>序号</th>
                                        <th>用户名</th>
                                        <th>年龄</th>
                                        <th>邮箱</th>
                                        <th>操作</th>
                                    </tr>
                                    </thead>

                                    <tbody>
&lt;!&ndash;                                    <tr class="gradeX" th:each="user:${pageuser}">&ndash;&gt;
&lt;!&ndash;                                        <td th:text="${user.getId()}">序号</td>&ndash;&gt;
&lt;!&ndash;                                        <td th:text="${user.getName()}">用户名</td>&ndash;&gt;
&lt;!&ndash;                                        <td th:text="${user.getAge()}">年龄</td>&ndash;&gt;
&lt;!&ndash;                                        <td th:text="${user.getEmail()}">邮箱</td>&ndash;&gt;
&lt;!&ndash;                                        <td>&ndash;&gt;
&lt;!&ndash;                                            <a type="button" class="btn btn-danger btn-sm">删除</a>&ndash;&gt;
&lt;!&ndash;                                        </td>&ndash;&gt;
&lt;!&ndash;                                    </tr>&ndash;&gt;
                                    </tbody>

                                </table>

                                <div class="row-fluid">
                                    <div class="span6">
                                        <div class="dataTables_info" id="dynamic-table_info">当前第 [[${page.getCurrent()}]] 页 总计 [[${page.getPages()}]] 共 [[${page.getTotal()}]] 条记录
                                        </div>
                                    </div>
                                    <div class="span6">
                                        <div class="dataTables_paginate paging_bootstrap pagination">
                                            <ul>
&lt;!&ndash;                                                <li class="prev disabled"><a href="#">← Previous</a></li>&ndash;&gt;
&lt;!&ndash;                                                <li th:class="${num==page.getCurrent()?'active':''}" th:each="num:${#numbers.sequence(1,page.getPages())}">&ndash;&gt;
&lt;!&ndash;                                                    <a th:href="@{/dynamic_table(pn=${num})}">[[${num}]]</a></li>&ndash;&gt;
&lt;!&ndash;                                                <li class="next disabled"><a href="#">Next → </a></li>&ndash;&gt;
                                            </ul>
                                        </div>
                                    </div>
                                </div>

                            </div>
                        </div>
                    </section>
                </div>
            </div>
        </div>
        &lt;!&ndash;body wrapper end&ndash;&gt;

        &lt;!&ndash;footer section start&ndash;&gt;
        <footer>
            2020 &copy; AdminEx by ThemeBucket
        </footer>
        &lt;!&ndash;footer section end&ndash;&gt;


    </div>
    &lt;!&ndash; main content end&ndash;&gt;
</section>

&lt;!&ndash; Placed js at the end of the document so the pages load faster &ndash;&gt;
&lt;!&ndash;<script src="js/jquery-1.10.2.min.js"></script>
<script src="js/jquery-ui-1.9.2.custom.min.js"></script>
<script src="js/jquery-migrate-1.2.1.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/modernizr.min.js"></script>
<script src="js/jquery.nicescroll.js"></script>&ndash;&gt;
<div th:replace="~{common/common::commonscript}"></div>

&lt;!&ndash;dynamic table&ndash;&gt;
<script type="text/javascript" language="javascript" src="js/advanced-datatable/js/jquery.dataTables.js"></script>
<script type="text/javascript" src="js/data-tables/DT_bootstrap.js"></script>
&lt;!&ndash;dynamic table initialization &ndash;&gt;
<script th:src="@{/js/dynamic_table_init.js}"></script>

&lt;!&ndash;common scripts for all pages&ndash;&gt;
&lt;!&ndash;<script src="js/scripts.js"></script>&ndash;&gt;

</body>
</html>
-->
